import { createRouter, createWebHistory } from "vue-router";
import Home from "../views/index.vue";
import Cinema from "../views/cinema.vue";
import Consult from "../views/consult.vue";
import Mine from "../views/mine.vue";
import Detail from "../views/detail.vue";
import City from "../views/city.vue";

const routerHistory = createWebHistory();
const router = createRouter({
  history: routerHistory,
  routes: [
    {
      path: "/",
      name: "app",
      component: Home,
      meta: {
        title: "首页",
      },
    },
    {
      path: "/cinema",
      component: Cinema,
      meta: {
        title: "影院",
      },
    },
    {
      path: "/consult",
      component: Consult,
      meta: {
        title: "资讯",
      },
    },
    {
      path: "/detail",
      component: Detail,
      meta: {
        title: "详情",
      },
    },
    {
      path: "/mine",
      component: Mine,
      meta: {
        title: "我的",
      },
    },
    {
      path: "/city",
      component: City,
      meta: {
        title: "当前城市-",
      },
    },
  ],
});
export default router;
